using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FiltronASP.Helpers.Pagination;
using FiltronASP.Models;
using System.Web.Mvc;

namespace FiltronASP.Areas.Admin.ViewModels.Languages
{
    /// <summary>
    /// ViewModel dla akcji <code>Index</code> dla wersji jezykowych.
    /// </summary>
    public class LanguagesIndexViewModel : BaseViewModel
    {
        /// <summary>
        /// spaginowana lista jezykow.
        /// </summary>
        public PagedList<Language> PaginatedLanguages { get; set; }

        /// <summary>
        /// Konstruktor.
        /// </summary>
        public LanguagesIndexViewModel()
            : base()
        {
        }

        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="languagesToDropDown">lista jezykow do drop downa</param>
        /// <param name="pageTypesInMenu">lista grup stron do menu z lewej</param>
        /// <param name="paginatedLanguages">spaginowana lista jezykow</param>
        public LanguagesIndexViewModel(IQueryable<Language> languagesToDropDown,
            IQueryable<PageType> pageTypesInMenu, IQueryable<Menu> menusInMenu, 
            PagedList<Language> paginatedLanguages, Language currentLanguage) 
            : base(languagesToDropDown, pageTypesInMenu, menusInMenu, currentLanguage)           
        {
            this.PaginatedLanguages = paginatedLanguages;
        }
    }
}
